Skip to main content

Send Mail Message

AutomatR.Outlook.SendMailMessage

The "Send Mail Message" activity in AutomatR is part of the Outlook activities package, designed to send an email message using Microsoft Outlook. This activity streamlines the process of sending emails within automation workflows.

Properties

NameDescription
Input
Account NameSpecifies the name of the Outlook account to use for sending the email.
BCCEmailIDsSpecifies the email address(es) to be added in the BCC (blind carbon copy) field of the email.
BodySpecifies the plain text body of the email.
CCEmailIDsSpecifies the email address(es) to be added in the CC (carbon copy) field of the email.
HTML BodySpecifies the HTML body of the email.
SubjectSpecifies the subject line of the email.
To Email AddressSpecifies the email address(es) of the primary recipient(s) of the email.
AttachmentsSpecifies a list of file paths for attachments to be added to the email.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelayEnter the wait time in seconds (Example: 5 seconds, i.e., 5) to start the activity.
Output
ResponseReturns a boolean value indicating whether the email was sent successfully. Variables of relevant types (e.g., Boolean variables) to store the send status.

How to use:

  1. Drag and drop the "Send Mail Message" activity onto the workflow.
  2. Configure the properties by specifying the necessary details such as account name, recipient email address, subject, body, etc.
  3. Optionally, configure the delay and customize the display name.
  4. Execute the workflow to send the specified email using Microsoft Outlook.

Example:

Consider an example where the "Send Mail Message" activity is used to send an inquiry email:

Send Mail Message:
Display Name: "Send Inquiry Email"
Account Name: "myOutlookAccount"
To Email Address: "inquiry@example.com"
CC Email IDs: "cc@example.com"
BCC Email IDs: "bcc@example.com"
Subject: "Regarding Your Inquiry"
Body: "Dear User, Thank you for your inquiry. We will get back to you soon."
HTML Body: "<p>Dear User,</p><p>Thank you for your inquiry. We will get back to you soon.</p>"
Attachments: ["C:\Attachments\document.pdf"]
Response: isEmailSentSuccessfully

In this example, the activity sends an inquiry email to the specified recipient with additional recipients in CC and BCC. The email content includes both plain text and HTML body, and an attachment is added. The result of the send operation (success or failure) is stored in the Boolean variable "isEmailSentSuccessfully" for further handling in the workflow.